//
//  DemoDelegate.m
//  UI01_UIWindow_UIView
//
//  Created by Scott on 16/5/3.
//  Copyright © 2016年 Scott. All rights reserved.
//

#import "DemoDelegate.h"
#import "ViewController.h"

@implementation DemoDelegate

- (void)dealloc {
    
    [_window release];
    [super dealloc];
}

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    
    self.window.backgroundColor =[UIColor whiteColor];
    [self.window makeKeyAndVisible];
    
    ViewController *vc = [[ViewController alloc] init];
    self.window.rootViewController = vc;
    
    
    [vc release];
    [_window release];
    
    
    NSLog(@"%s, %d", __FUNCTION__, __LINE__);
    
    
    return YES;
}


@end
